import Rx from "../../../qbasics/abstract/Rx.js"



export default async  function   JsrLoad(name,obj,value,type){

    let res;
   let root= qguan("root")
    let data=root.findData(name)

   res= await  data.then(   (data1)=>{
        let rx =new Rx();
       rx.loadData(data1)
        let aopFactory=qguan("aopFactory")
         let code=  rx.findFile(name,obj,value);
       if(code){
           let txt=  code.dxToTxt()
           let resObj=     aopFactory.createCodeObj(name,value,txt)
            return resObj;
        }
    } )


}